using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._LocationReferencingTools._Configuration
{
    /// <summary>
    /// <para>Remove LRS Entity</para>
    /// <para>Removes a linear referencing system (LRS) entity from an input geodatabase workspace.</para>
    /// <para>从输入地理数据库工作空间中移除线性参考系统 （LRS） 图元。</para>
    /// </summary>    
    [DisplayName("Remove LRS Entity")]
    public class RemoveLRSEntity : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public RemoveLRSEntity()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_workspace">
        /// <para>LRS Workspace</para>
        /// <para>The input geodatabase workspace that contains the LRS entity that will be removed.</para>
        /// <para>包含将要移除的 LRS 实体的输入地理数据库工作空间。</para>
        /// </param>
        /// <param name="_lrs_entity_type">
        /// <para>LRS Entity Type</para>
        /// <para><xdoc>
        ///   <para>Specifies the type of LRS entity that will be removed from the input geodatabase workspace.</para>
        ///   <bulletList>
        ///     <bullet_item>LRS—An LRS and its dependent LRS Networks, as well as the LRS events, and LRS intersections registered to those LRS Networks, will be removed.</bullet_item><para/>
        ///     <bullet_item>Network—An LRS Network and the LRS events and LRS intersections registered to that LRS Network will be removed.</bullet_item><para/>
        ///     <bullet_item>Event—An LRS event will be removed.</bullet_item><para/>
        ///     <bullet_item>Intersection—An LRS intersection will be removed.</bullet_item><para/>
        ///     <bullet_item>Utility Network Feature Class—A utility network feature class will be removed.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定将从输入地理数据库工作空间中移除的 LRS 实体的类型。</para>
        ///   <bulletList>
        ///     <bullet_item>LRS—将移除 LRS 及其从属 LRS 网络，以及 LRS 事件和注册到这些 LRS 网络的 LRS 交点。</bullet_item><para/>
        ///     <bullet_item>网络 - 将移除 LRS 网络以及注册到该 LRS 网络的 LRS 事件和 LRS 交集。</bullet_item><para/>
        ///     <bullet_item>事件 - 将移除 LRS 事件。</bullet_item><para/>
        ///     <bullet_item>相交 - 将移除 LRS 相交。</bullet_item><para/>
        ///     <bullet_item>公共设施网络要素类—将移除公共设施网络要素类。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// </param>
        /// <param name="_lrs_entity_name">
        /// <para>LRS Entity Name</para>
        /// <para>The name of the LRS entity that will be removed from the input geodatabase workspace. The underlying feature classes and tables of the LRS entity will not be deleted.</para>
        /// <para>将从输入地理数据库工作空间中移除的 LRS 图元的名称。不会删除 LRS 图元的基础要素类和表。</para>
        /// </param>
        public RemoveLRSEntity(object _in_workspace, _lrs_entity_type_value? _lrs_entity_type, object _lrs_entity_name)
        {
            this._in_workspace = _in_workspace;
            this._lrs_entity_type = _lrs_entity_type;
            this._lrs_entity_name = _lrs_entity_name;
        }
        public override string ToolboxName => "Location Referencing Tools";

        public override string ToolName => "Remove LRS Entity";

        public override string CallName => "locref.RemoveLRSEntity";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_workspace, _lrs_entity_type.GetGPValue(), _lrs_entity_name, _out_workspace];

        /// <summary>
        /// <para>LRS Workspace</para>
        /// <para>The input geodatabase workspace that contains the LRS entity that will be removed.</para>
        /// <para>包含将要移除的 LRS 实体的输入地理数据库工作空间。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("LRS Workspace")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_workspace { get; set; }


        /// <summary>
        /// <para>LRS Entity Type</para>
        /// <para><xdoc>
        ///   <para>Specifies the type of LRS entity that will be removed from the input geodatabase workspace.</para>
        ///   <bulletList>
        ///     <bullet_item>LRS—An LRS and its dependent LRS Networks, as well as the LRS events, and LRS intersections registered to those LRS Networks, will be removed.</bullet_item><para/>
        ///     <bullet_item>Network—An LRS Network and the LRS events and LRS intersections registered to that LRS Network will be removed.</bullet_item><para/>
        ///     <bullet_item>Event—An LRS event will be removed.</bullet_item><para/>
        ///     <bullet_item>Intersection—An LRS intersection will be removed.</bullet_item><para/>
        ///     <bullet_item>Utility Network Feature Class—A utility network feature class will be removed.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定将从输入地理数据库工作空间中移除的 LRS 实体的类型。</para>
        ///   <bulletList>
        ///     <bullet_item>LRS—将移除 LRS 及其从属 LRS 网络，以及 LRS 事件和注册到这些 LRS 网络的 LRS 交点。</bullet_item><para/>
        ///     <bullet_item>网络 - 将移除 LRS 网络以及注册到该 LRS 网络的 LRS 事件和 LRS 交集。</bullet_item><para/>
        ///     <bullet_item>事件 - 将移除 LRS 事件。</bullet_item><para/>
        ///     <bullet_item>相交 - 将移除 LRS 相交。</bullet_item><para/>
        ///     <bullet_item>公共设施网络要素类—将移除公共设施网络要素类。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("LRS Entity Type")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public _lrs_entity_type_value? _lrs_entity_type { get; set; }

        public enum _lrs_entity_type_value
        {
            /// <summary>
            /// <para>LRS</para>
            /// <para>LRS—An LRS and its dependent LRS Networks, as well as the LRS events, and LRS intersections registered to those LRS Networks, will be removed.</para>
            /// <para>LRS—将移除 LRS 及其从属 LRS 网络，以及 LRS 事件和注册到这些 LRS 网络的 LRS 交点。</para>
            /// </summary>
            [Description("LRS")]
            [GPEnumValue("LRS")]
            _LRS,

            /// <summary>
            /// <para>Network</para>
            /// <para>Network—An LRS Network and the LRS events and LRS intersections registered to that LRS Network will be removed.</para>
            /// <para>网络 - 将移除 LRS 网络以及注册到该 LRS 网络的 LRS 事件和 LRS 交集。</para>
            /// </summary>
            [Description("Network")]
            [GPEnumValue("NETWORK")]
            _NETWORK,

            /// <summary>
            /// <para>Event</para>
            /// <para>Event—An LRS event will be removed.</para>
            /// <para>事件 - 将移除 LRS 事件。</para>
            /// </summary>
            [Description("Event")]
            [GPEnumValue("EVENT")]
            _EVENT,

            /// <summary>
            /// <para>Intersection</para>
            /// <para>Intersection—An LRS intersection will be removed.</para>
            /// <para>相交 - 将移除 LRS 相交。</para>
            /// </summary>
            [Description("Intersection")]
            [GPEnumValue("INTERSECTION")]
            _INTERSECTION,

            /// <summary>
            /// <para>Utility Network Feature Class</para>
            /// <para>Utility Network Feature Class—A utility network feature class will be removed.</para>
            /// <para>公共设施网络要素类—将移除公共设施网络要素类。</para>
            /// </summary>
            [Description("Utility Network Feature Class")]
            [GPEnumValue("UN_FEATURE_CLASS")]
            _UN_FEATURE_CLASS,

        }

        /// <summary>
        /// <para>LRS Entity Name</para>
        /// <para>The name of the LRS entity that will be removed from the input geodatabase workspace. The underlying feature classes and tables of the LRS entity will not be deleted.</para>
        /// <para>将从输入地理数据库工作空间中移除的 LRS 图元的名称。不会删除 LRS 图元的基础要素类和表。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("LRS Entity Name")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _lrs_entity_name { get; set; }


        /// <summary>
        /// <para>Updated LRS Workspace</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated LRS Workspace")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_workspace { get; set; }


        public RemoveLRSEntity SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}